﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.PopupDialog, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	_DB:AddCodeHelp("OnCancel", [[ScriptType, Run when the popupdialog's cancel button is clicked]], [[OnCancel()]])
	_DB:AddCodeHelp("OnNo", [[ScriptType, Run when the popupdialog's no button is clicked]], [[OnNo()]])
	_DB:AddCodeHelp("OnTextChanged", [[ScriptType, Run when the popupdialog's inputbox's text is changed]], [[OnTextChanged()]])
	_DB:AddCodeHelp("OnOkay", [[ScriptType, Run when the popupdialog's okay button is clicked]], [[OnOkay()]])
	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.PopupDialog, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("GetStyle", [=[Gets the popupdialog's style]=], [=[GetStyle()]=])
	_DB:AddCodeHelp("SetStyle", [=[Sets the popupdialog's style]=], [=[SetStyle(style)]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.PopupDialog, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))

	_DB:AddCodeHelp("Input", [[the instance of the popupdialog's input object(It's a ComboBox, can be used in special way)]], IGAS:GetPropertyType("ComboBox"))
	_DB:AddCodeHelp("ShowOkayButton", [[whether show the okay button]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("ShowAlertIcon", [[whether show the alert icon]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("ShowCancelButton", [[whether show the cancel button]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("Text", [[the text in the input edit box]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("ShowInputBox", [[whether show the input edit box]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("Message", [[the message to be shown]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("Style", [[the popupdialog's style: COMMON, LIGHT]], IGAS:GetPropertyType("PopupDialogStyle"))
	_DB:AddCodeHelp("CancelButtonText", [[the text that displayed on the cancel button]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("OkayButtonText", [[the text that displayed on the okay button]], IGAS:GetPropertyType("string"))
	_DB:AddCodeHelp("ShowNoButton", [[whether show the no button]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("ShowWhileDead", [[whether show while player is dead]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("ShowWhileCinematic", [[whether show while player is in cinematic]], IGAS:GetPropertyType("boolean"))
	_DB:AddCodeHelp("NoButtonText", [[the text that displayed on the no button]], IGAS:GetPropertyType("string"))
end
